<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>修改个人信息</title>
<meta name="viewport" content="width-device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/5.11.2/css/all.css" />
<link rel="stylesheet" href="css/person_update.css" />
<link rel="shortcut icon" href="ico/logo.ico"/>
</head>

<body>
	
<!--定义头部区域，放导航和logo -->
<header>
<div class="logo"><img src="ico/logo.png" alt=""/>伴美科技</div>
<nav>
<a href="person_center.php">返回<<<<</a>
<?php
require_once("conn/conn_db.php");
if($_GET["u_id"] !="" )
{
  $uid = $_GET["u_id"];
   $str ="select * from user_info where u_id=".$uid ;
   $result= $conn->query($str);
   if ($result->num_rows) {
        $row = $result->fetch_assoc();
?>
<img src='../<?php echo $row['u_header'];?>' style="border-radius: 50%; width: 36px; height: 36px; position: absolute; top: 20px; right: 38px;" alt="User">

	
</nav>
	
<!--定义折叠按钮 屏幕缩小到 -->
<div class="burger">
    <div class="burger-line1"></div>
	<div class="burger-line2"></div>
	<div class="burger-line3"></div>
</div>	
</header>


<!-- 修改密码部分开始 -->
<form action="action/person_pwd_do.php" method="post"  enctype="multipart/form-data">
	<?php  include 'action/session_check.php'; //登录判断  ?>
	<div class="container_box">
  
	
	<h1>修改密码</h1>
		
		<h2>姓名：<?php echo $row["u_name"];?></h2>
		
		<br>
		
		<span class="update_part">输入原密码：<font color="#fb7299">*</font></span>
		<input type="text" name="txt_pwd" class="update_text"/>
		<br>
		
		<span class="update_part">输入新密码：<font color="#fb7299">*</font></span>
		<input type="text" name="txt_newpwd1" class="update_text"/>
		<br>
		
		<span class="update_part">确认新密码：<font color="#fb7299">*</font></span>
		<input type="text" name="txt_newpwd2" class="update_text"/>
		<br>

	   <input type="hidden" name="txt_name" value="<?php echo $row["u_name"]; ?>"/>
	   <input  type="submit" value="保存" />
   
	
	      </div>
	</div>
 </form>
<!-- 修改密码部分结束 -->

<!-- 底部模块开始 -->	
	<footer>
    <div class="footer-menus">
	   <div class="contact-us">
		    <p class="menu-title">联系我们</p>
		    <p>地址：中国重庆市XX路XX商务中心XX楼</p>
		   　<p>电话：+86XXX XXXX XXXX</p>
		   　<p>传真：+86XXX　XXXX XXXX</p>
		  　 <p>电子邮箱：admin@163.com</p>
	   </div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">服务概况</p>
		  <ul class="menu-items">
		     <li><a href="#">跨境电商</a></li>
			 <li><a href="#">供应商</a></li>
			 <li><a href="#">移动应用</a></li>
			 <li><a href="#">网页设计</a></li>
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">跨境产品</p>
		  <ul class="menu-items">
		     <li><a href="#">美妆护肤</a></li>
			 <li><a href="#">家用电器</a></li>
			 <li><a href="#">健康零食</a></li>
			 <li><a href="#">生活用品</a></li>
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">公司动态</p>
		  <ul class="menu-items">
		     <li><a href="#">信息公开</a></li>
			 <li><a href="#">最近新闻</a></li>
			 <li><a href="#">最新消息</a></li>
			 
		  </ul>
		</div>
		<div class="service-menu footer-menu">
		  <p class="menu-title">帮助与支持</p>
		  <ul class="menu-items">
		     <li><a href="#">帮助中心</a></li>
			 <li><a href="#">联系客服</a></li>
			 <li><a href="#">文档资源</a></li>
			
		  </ul>
		</div>
		<p class="icp-info">备案号信息</p>
		<p class="rights">
		      &copy;2022 伴美科技 - 有限责任公司官网 版权所有
		</p>
		

	</div>	
</footer>
<!-- 底部模块结束 -->	

<?php 
}
}
 else 
 {
   echo "<script>alert('请选择要编辑的用户信息！');self.location='person_center.php'</script>";     
 }
?>
	
</body>
</html>	
	